package com.clon;

public class Test {
    //联系一下clone的方法
    public static void main(String[] args) throws CloneNotSupportedException {
        //1:先创建1个对象：
        int []data = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,0};
        User u1 = new User(1,"zhangsan","1234","girl1",data);

        //2:克隆一个对象：
        User u2 = (User) u1.clone();

        System.out.println(u1);
        System.out.println(u2);








    }
}
